<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

  <style>
    #d1{
      width: 100px;
      height: 100px;
      overflow: hidden;
      background-color: red;
      border-radius: 2px;
      margin-left: 12px;
      margin-top: 20px;
    }
    body>div>div{
      width: 60px;
      height: 60px;
      background-color: blue;
      margin-left: 20px;
      margin-top: 20px;
      border-radius: 2px;
    }
    #d2{
        width: 50px;
        height: 50px;
        border: 3px solid green;
        border-radius: 4px;
        margin-left: 112px;
        padding-left: 50px;
        padding-top: 50px;
    }
  </style>

</head>
<body>

<div id="d1">
  <div></div>
</div>
<div id="d2">哈喽</div>

</body>
</html>